// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   GTSHolidayHelper.java

package com.sunwayhorizo.health.hl7.datatypes.common;

import com.sunwayhorizo.health.hl7.common.Hl7Exception;
import com.sunwayhorizo.health.hl7.common.VersionInfo;
import com.sunwayhorizo.health.hl7.datatypes.GTS;
import com.sunwayhorizo.health.hl7.datatypes.PIVL;

import java.util.HashMap;
import java.util.Iterator;


// Referenced classes of package oracle.apps.ctb.hl7.types.common:
//            ANYImpl, GTSBase, GTSHullImpl, GTSMinimalImpl, 
//            GTSUnionImpl, PIVL_TSImpl, STImpl

public class GTSHolidayHelper
{

    public static final String RCS_ID = "$Header: GTSHolidayHelper.java 115.12 2005/05/13 15:03:40 atomlins noship $";
    public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion("$Header: GTSHolidayHelper.java 115.12 2005/05/13 15:03:40 atomlins noship $", "oracle.apps.ctb.hl7.types.common");
    static HashMap map;
    private static boolean initialized;
    public static GTS HOLIDAY;
    static PIVL JHCHRXME;
    static PIVL JHCHRXMS;
    static PIVL JHCHRNEW;
    static PIVL JHCHREAS;
    static PIVL JHCHRGFR;
    static PIVL JHCHRPEN;
    static GTS JHNUS;
    static GTS JHNUSMLK;
    static GTS JHNUSPRE;
    static GTS JHNUSMEM;
    static GTS JHNUSMEM5;
    static GTS JHNUSMEM6;
    static GTS JHNUSIND;
    static GTS JHNUSIND5;
    static GTS JHNUSIND1;
    static GTS JHNUSLBR;
    static GTS JHNUSCLM;
    static GTS JHNUSVET;
    static GTS JHNUSTKS;
    static GTS JHNUSTKS5;

    public static GTS valueOf(String s)
    {
        try
        {
            init();
        }
        catch(Hl7Exception ctbexception)
        {
            RuntimeException runtimeexception = ANYImpl.newGTSSymbolException(s);
            StringBuffer stringbuffer = new StringBuffer(runtimeexception.getMessage());
            stringbuffer.append("\nOriginating Stacktrace:\n");
            stringbuffer.append(ctbexception.toString());
            throw runtimeexception;
        }
        GTS gts = (GTS)map.get(s);
        if(gts == null)
            throw ANYImpl.newGTSSymbolException(s);
        else
            return gts;
    }

    private static synchronized void init()
        throws Hl7Exception
    {
        if(initialized)
            return;
        initialized = true;
        map = new HashMap();
        JHNUSMLK = GTSHullImpl.valueOf("M0115..21 J1");
        ((GTSBase)JHNUSMLK)._literal = STImpl.valueOf("JHNUSMLK");
        map.put("JHNUSMLK", JHNUSMLK);
        JHNUSPRE = GTSHullImpl.valueOf("M0215..21 J1");
        ((GTSBase)JHNUSPRE)._literal = STImpl.valueOf("JHNUSPRE");
        map.put("JHNUSPRE", JHNUSPRE);
        JHNUSMEM = GTSHullImpl.valueOf("M0525..31 J1");
        ((GTSBase)JHNUSMEM)._literal = STImpl.valueOf("JHNUSMEM");
        map.put("JHNUSMEM", JHNUSMEM);
        JHNUSMEM5 = GTSHullImpl.valueOf("M0522..28 J5");
        ((GTSBase)JHNUSMEM5)._literal = STImpl.valueOf("JHNUSMEM5");
        map.put("JHNUSMEM5", JHNUSMEM5);
        JHNUSMEM6 = GTSHullImpl.valueOf("M0523..29 J6");
        ((GTSBase)JHNUSMEM6)._literal = STImpl.valueOf("JHNUSMEM6");
        map.put("JHNUSMEM6", JHNUSMEM6);
        JHNUSIND = GTSHullImpl.valueOf("M0704");
        ((GTSBase)JHNUSIND)._literal = STImpl.valueOf("JHNUSIND");
        map.put("JHNUSIND", JHNUSIND);
        JHNUSIND5 = GTSHullImpl.valueOf("M0703 J5");
        ((GTSBase)JHNUSIND5)._literal = STImpl.valueOf("JHNUSIND5");
        map.put("JHNUSIND5", JHNUSIND5);
        JHNUSIND1 = GTSHullImpl.valueOf("M0705 J1");
        ((GTSBase)JHNUSIND1)._literal = STImpl.valueOf("JHNUSIND1");
        map.put("JHNUSIND1", JHNUSIND1);
        JHNUSLBR = GTSHullImpl.valueOf("M0901..07 J1");
        ((GTSBase)JHNUSLBR)._literal = STImpl.valueOf("JHNUSLBR");
        map.put("JHNUSLBR", JHNUSLBR);
        JHNUSCLM = GTSHullImpl.valueOf("M1008..14 J1");
        ((GTSBase)JHNUSCLM)._literal = STImpl.valueOf("JHNUSCLM");
        map.put("JHNUSCLM", JHNUSCLM);
        JHNUSVET = GTSHullImpl.valueOf("M1111");
        ((GTSBase)JHNUSVET)._literal = STImpl.valueOf("JHNUSVET");
        map.put("JHNUSVET", JHNUSVET);
        JHNUSTKS = GTSHullImpl.valueOf("M1122..28 J4");
        ((GTSBase)JHNUSTKS)._literal = STImpl.valueOf("JHNUSTKS");
        map.put("JHNUSTKS", JHNUSTKS);
        JHNUSTKS5 = GTSHullImpl.valueOf("M1123..29 J5");
        ((GTSBase)JHNUSTKS5)._literal = STImpl.valueOf("JHNUSTKS5");
        map.put("JHNUSTKS5", JHNUSTKS5);
        for(Iterator iterator = map.values().iterator(); iterator.hasNext();)
            if(JHNUS == null)
                JHNUS = (GTS)iterator.next();
            else
                JHNUS = GTSUnionImpl.valueOf(JHNUS, (GTS)iterator.next());

        ((GTSBase)JHNUS)._literal = STImpl.valueOf("JHNUS");
        map.put("JHNUS", JHNUS);
        JHCHRXME = PIVL_TSImpl.valueOf("M1224");
        ((GTSBase)JHCHRXME)._literal = STImpl.valueOf("JHCHRXME");
        map.put("JHCHRXME", JHCHRXME);
        JHCHRXMS = PIVL_TSImpl.valueOf("M1225");
        ((GTSBase)JHCHRXMS)._literal = STImpl.valueOf("JHCHRXMS");
        map.put("JHCHRXMS", JHCHRXMS);
        JHCHRNEW = PIVL_TSImpl.valueOf("M0101");
        ((GTSBase)JHCHRNEW)._literal = STImpl.valueOf("JHCHRNEW");
        map.put("JHCHRNEW", JHCHRNEW);
        JHCHREAS = GTSMinimalImpl.valueOf("JHCHREAS");
        map.put("JHCHREAS", JHCHREAS);
        JHCHRGFR = GTSMinimalImpl.valueOf("JHCHRGFR");
        map.put("JHCHRGFR", JHCHRGFR);
        JHCHRPEN = GTSMinimalImpl.valueOf("JHCHRPEN");
        map.put("JHCHRPEN", JHCHRPEN);
        Object obj = null;
        for(Iterator iterator1 = map.values().iterator(); iterator1.hasNext();)
            if(obj == null)
                obj = (GTS)iterator1.next();
            else
                obj = GTSUnionImpl.valueOf(((GTS) (obj)), (GTS)iterator1.next());

        HOLIDAY = ((GTS) (obj));
        ((GTSBase)HOLIDAY)._literal = STImpl.valueOf("JH");
        map.put("JH", HOLIDAY);
    }

    public GTSHolidayHelper()
    {
    }

}
